#include "head.h"





    ADJ::ADJ(unsigned short int vid, unsigned short int eid){
		this->vid=vid;
		this->eid=eid;
	}

	G::G(){
		int i;
		//vs
		//es
		for(i=0;i<es.size();i++){
			adj_table[es[i]->left].push_back(new ADJ(es[i]->right,i));
			adj_table[es[i]->right].push_back(new ADJ(es[i]->left,i));
		}
	}



    Route::Route(V* start, double route_length, float velocity, unsigned short int cycle){
		this->start=start;
		this->route_length=route_length;
		this->velocity=velocity;
		this->cycle=cycle;
	}

	void Route::generate_route(){
		double rl=0.0;
		double unit_d=velocity*cycle;
		while(rl<route_length){

		}

	}



	

